added distance computations
Merge pull request #3 from jessewar/master

3rd pull