Began work on avoiding redeclaration of opencl objects.
Minor changes.
Reuses mem_obj names. Still doesn't seem to work with more than one kernel call.
It did work.. but only for arrays of size 2^n