Bugfix in the autotuning's exhaustive search procedure

Use int to save current brute force index instead of iterator