comparing backtracking to dancing links when solving n queens