Changed comparePoints() to pass parameters by value instead of reference.

A Point struct is conceptually a value type, like a Range struct.
Added unit tests for comparePoints().