moved allocations of OpenCL buffers to init function