using backtracking search algorithm