A basic implementation of convolutional neural nets