modified compareTo in point.java, changed the compare type from point to Object