Update Backtrack Algorithm