add compute_distance method and refactor similarity criteria
add compute_distance method and refactor similarity criteria
add compute_neighbor_distance method and refactor similarity criteria
Merge pull request #16 from zhenzonglei/NewSimilarity

New SimilarityCriteria