converted backprop to full matrix muliplies, speeds up the code by a LOT