[standard-ml/en-en] Removing syntax errors and fixing solve2 function

I hadn't actually run the code until you accepted my first pull request. I should probably have, as there were a few mistakes. :)