Implemented CNN kernels