Update: using algorithm for Euclidean distance! Wayyy better results!