OpenCL examples refactoring