solutions to 8queens problem for arbitrary board size