[Refac] rewrote backprop to explicitly take into account bias