Efficient similarity search in metric spaces with cluster reduction