Added implementations of backtracking algorithms.