class Sort {

    public static void buildHeap(int[] arr, int length) {
        for (int i = 0; i < length; i++) {
            adjustHeap(arr, i, length);
        }
    }

}

class SortTest {

    @Test
    public void buildHeapTest() {

        int[] data = {1, 4, 5, 3, 2};
        Sort.buildHeap(data, data.length);
        for (int i : data) {
            System.out.println(i);
        }
    }

}