backtrack solves eight queen problem