Introduced an abstract base class for Hmatrix classes.