Point class implementation and testing.