bugs fixed in containsPoint and containsPolygon