modify convolutional rbm to handle more than one image at a time, also added a lot of lin alg