Reorganizing the linear algebra module