created SquareMatrix subclass template