Fixed the dissimilarity calculation. Now it uses the Minkowski's
distance