prefetch improved. Defined 2 different kernels for inner loop