created turnpike reconstruction code

This uses extensive backtracking, is one of the most common problems in recursion and backtracking.