Distance Measures and Clustering Algorithms