Create SegmentSplitX.m

Subfunction to PolyGrid.m and splits the segments in the x direction according to user specifications.