@@ -0,0 +1,927 @@
+package me.alivecode.algs4;%0A%0Aimport java.util.ArrayList;%0A%0Aimport edu.princeton.cs.algs4.In;%0Aimport edu.princeton.cs.algs4.StdIn;%0Aimport edu.princeton.cs.algs4.StdOut;%0A%0Apublic class Shell %7B%0A    private Shell() %7B%7D%0A%0A    public static void sort(Comparable%5B%5D a) %7B%0A        int N = a.length;%0A        int h = 1;%0A        while (h %3C N/3) %7B h = 3*h + 1; %7D%0A        while(h %3E= 1) %7B%0A            for(int i = h; i %3C N; i++) %7B%0A                for(int j = i; j %3E= h && SortUtil.less(a%5Bj%5D, a%5Bj-h%5D); j-=h) %7B%0A                    SortUtil.exch(a, j, j-h);%0A                %7D%0A            %7D%0A            h = h/3;%0A        %7D%0A        assert SortUtil.isSorted(a);%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        In in = new In(args%5B0%5D);%0A        String%5B%5D a = in.readAllStrings();%0A        StdOut.println(%22Read %22+ a.length + %22 items%22);%0A        sort((Comparable%5B%5D)a);%0A        StdOut.println(%22After being sorted.%22);%0A        SortUtil.show(a);%0A    %7D%0A%7D%0A

Add shell short class