Updated and optimized the n queens problem.

I finally understood how foldM on lists work :happy: Since this provides an
efficient way of backtracking, no guard is needed for reasonable numbers
anymore.