Solving the n-queen puzzle on GPU