distance between two points working