added first pass of the DP solution
added the traceback