Backtracking. Add solutions to exercises 1.2 and 1.3