Hill Climbing Solutions for 8-Puzzle and N-Queens problems in C++