solve the N queens problem