created turnpike reconstruction code

This uses extensive backtracking, is one of the most common problems in recursion and backtracking.
Merge pull request #1 from ddhruvkr/master

added turnpike reconstruction code, Thanks Dhruv!