Add distance measures

Added distance measure Eulidean, Mahalanobis, SpearmanR, SpearmanAbsolute, PearsonR, PearsonRAbsolute
Replaced broken test
Merge pull request #139 from nikicc/distances

Add distance measures
Fixed conflicts