Added an C++ implementation of an kernel wrapper