added home-brewed linear algebra toolkit