Backpropagation of errors in CNNs