added some code to test later for pointInPolygon

http://stackoverflow.com/questions/11716268/point-in-polygon-algorithm