Added a EuclidSq distance function.