extended euclidean distance calculation for n-dimensions

* Now we use spatial from scipy to calculate the euclidean distances.
This also works with multi-dimensional data.