Every algorithm finally works. Steepest is able to find optimal solution (when started numerous times). Valgrind doesn't give any errors nor warnings. G++ doesn't give any warnings either.

Time to implement greedy algorithm and then a way for easy loading problems and gettings needed statistisc.