Switch from deprecated Distance.jl to Distances.jl

Distance.jl is deprecated now so it makes sense to switch to Distances.jl. (This is my first pull request to an open source project, so I hope I'm following the proper protocol here.)