N queens problem solved