Wrote body of matrix engine. Simplified the interface.
Matrix engine finally compiles using fixed point. Test fail though.