static void hHelper(int[]A, int i) {
		int x=i,y=A[i], n=A.length;
		int left=i*2+1, right=i*2+2;
		if (left<n&&A[left]<y) {
			x=left;
			y=A[left];
		}
		if (right<n&&A[right]<y) {
			x=right;
			y=A[right];
		}
		if (x!=i) {
			swap(A,i,x);
			hHelper(A,x);
		}
	}