made CommandQueue parameter in KernelWrapper class as a member, not as a parameter