A simple implementation of convolutional networks in Matlab