add missing nearestPointQuery & segmentQuery for cp.Shape
Added test case
Merge pull request #1073 from joshuastray/cpshape

add missing nearestPointQuery & segmentQuery for cp.Shape