adding my code, will clean it up soon. Euclidean.py is the most recent version