Added a 'finished' average calculation kernel and added the psuedo code for the c++ side of it.

Needs to be tested because I'm still having issues with OpenCL on my
windows machine.