Different implementations of the NQueens Problem