Found major bug in convolve function. Gradients are fine for feedForward architecture now, stackedAE still to be adapted.