Simple python implementations of nqueens problem