Use a shift register on your FOR loop to hold the sum. You add the current sum with the current cluster's value and put the value in the shift register. You will need one for each sum you want to take.
Thank for your help now its working perfectly.
No, that's not good:
Compare with my solution above.