Optimization on diagonal checking.
Reorganized NQueens.