The N-queens problem