trace() {
                var min = Math.min(this.rows, this.columns);
                var trace = 0;
                for (var i = 0; i < min; i++) {
                    trace += this.get(i, i);
                }
                return trace;
            }
Returns the trace of the matrix (sum of the diagonal elements)
@return {number}