Using hashcode in Point.equals method