fix bug preventing line and box to recognize parallel lines correctly

Added a TOL tolerance parameter and changed the way lines compare angles
to another line, a prerequisite to testing for parallel.  Testing for
parallel lines is a key test in my rotating calipers method to make sure
the calipers are always parallel to one another.