many changes: put test in sep dir, added polygon code though its hardly complete and untested, an in the process realized many of the things missing from other bits, e.g., had to finally look into the details of line intersection. Also added some vectorization code for some of the common functions. Lots of this stuff hasn't been tested yet