Basic convolutional pooling layer implementation