Recurrent back-propagation for cellular neural networks