Fixing bug in fwdprop
Fixing bug in backprop for building sparse matrix