Adding Backtracking Algorithms