added math/mul.cpp/hpp, not tested but should work
I made the model struct to store layers. I'm still missing the backward functions, but it's functional