Further improve speed of euclidean distances Cython implementation