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
Merge pull request #7 from capshaw/master

Merging 'Master' into 'gh-pages'