added original (from m) base classes for matrix and linear systems.