Now have an implementation of CNNs well tested against MNIST, giving very reasonable results.