Added block generation, autotuning by exhaustive search