Consolidated distance metric functions, wrote test routines verifying
consistent results across both functions, depricated old functions.