convenience method for writing arrays to clbuffers.
ok, can account for almost all time in outside!
refactoring the profiling stuff
nicer syntax!