added a compare() function for Points and an assert function for testing