overloaded < operator in GridPoint class