Algorithm back_propagation working