Fix dumb syntax error
Fix missing initializations in SearchNode copy constructor
Fix how the solution is returned to the constructor

Commit 5edbcc4 tried to fix this, but failed
Fix typo in assertion
Write input and output methods/the main function