Derive new class SquareMatrix