changed Mypoint to MyPoint in ClosestPair and added distTo in Mypoint