Convert kernel to task
Add best_sum logic inside main loop of task kernel
Make task store all sums to array then iterate again to find the best sum