public boolean sameOrder(Matrix a) { //Doesn't work with jagged arrays, call isJagged() first
        if (a == null) {
            return false;
        }
        if (this.isJagged || a.isJagged) {
            return false;
        }
        if (this.rowCount != a.rowCount) {
            return false;  //different row number
        }
        if (this.columnCount != a.columnCount) {
            return false; //different column number
        }
        return true;
    }