fixes algorithm for computing squared (Euclidean) distance.
Merge pull request #23 from policecar/master

fixes algorithm for computing squared (Euclidean) distance.
we have an inverted y axis due to the canvas
Merge branch 'refs/heads/master' into minecraft_wv_newspock