Uses squared distance instead of distance

Optimization: Math.sqrt() is expensive to calculate.
Turns out it's unneeded.
Merge pull request #6 from glenwatson/master

Uses squared distance instead of distance