public static void main(String[] args) {
        int[] test = {888, 1, 5, 3, 6, 1, 999, -100, 2, 5, 7, 8, 10, -1};
        HeapSort h = new HeapSort();
        for (int i : h.sort(test)) {
            System.out.print(i + " ");
        }
    }