wrote algorithm for solver in algorithm.txt, fixed Parser::getLine()'s logic