Queens problem using recursion