Add back propagation

remove all const of all array input parameters, since it would be
annoying when we update weights