Added a skeleton for a backtracking algorithm.