First try at solution on Ass2/Prob1. Doesnt save subproblem sols.