public static void main(String[] args) {
        // Example of how to test
    	int memSize = 10;
    	int tapeSize = 80;
        TapeSorter tapeSorter = new TapeSorter(memSize, tapeSize);
        TapeDrive t1 = TapeDrive.generateRandomTape(tapeSize);
        TapeDrive t2 = new TapeDrive(tapeSize);
        TapeDrive t3 = new TapeDrive(tapeSize);
        TapeDrive t4 = new TapeDrive(tapeSize);

        tapeSorter.sort(t1, t2, t3, t4);
        int last = Integer.MIN_VALUE;
        boolean sorted = true;
        for (int i = 0; i < tapeSize; i++) {
            int val = t1.read();
            sorted &= last <= val;
            last = val;
        }
        if (sorted)
            System.out.println("Sorted!");
        else
            System.out.println("Not sorted!");
    }