fixed the substitution solver to be smarter and faster
Merge branch 'master' of https://github.com/nbehdin/121HW3