Sudoku Solver template in C++11