Code for OpenCL related homework