Added getSum to matrixComp class