Added an algorithm for computing path segments (points+direction data) from a Path of grid points.