Implemented the basis for convolutional neural nets