Finds the distance between two points