made sure that not all functions were public and changed some to private
that need not be exposed.
also added in maximum error to deal with floating point inaccuracies
defined what a rectangle is and also implemented IsRect(), which returns
a bool whether the coordinates given make a rectangle or not. Tests
were written for IsRect()