Text this: N-Dimensional Reduction Algorithm for Learning from Demonstration Path Planning