public void prettyPrint() {
        for (int i = 0; i < matrix.length; i++) {
            for (int j = 0; j < matrix[i].length; j++) {
                System.out.print(matrix[i][j]);
                if (j < matrix[i].length - 1) {
                    System.out.print('\t');
                } else {
                    System.out.print('\n');
                }
            }
        }
        System.out.println();
    }