Solves the traditional n queens problem for an nxn board, for all solutions