Added is_cpu(const cl::Device&) function
Changed kernel loop organization for CPU devices

Borrowed the idea from viennacl