Added normalizeGenerator

Added function to normalize the generator pattern so the first vertex is
at (0,0) and the last vertex is at (1,0). This should simplify
line-replacement transforms.