Program to solve the 8-Queens problem.