fixed planar cycle algorithm, added chord detection algorithm
fixed polygon-contains-polygon algorithm