Implemented a convolution kernel