Update PolyGrid.m

Inclusion of both SegmentSplitX and SegmentSplitY as well as some rearranging. Next edition will have reworked vertex split to accommodate for added points from the segments.