Notes on N-Queens problem.