Iterative N Queens