A hill climbing algorithm solving the N queens problem