public static void BuildMaxHeap(List<Integer> array, double x){
		int heapLength = array.size();
		
		for(int i = (int)Math.floor((heapLength)/2); i>0; i--){
			MaxHeapify(array, i);
		}
		if(x!=0){
			x = x - 1;
			BuildMaxHeap(array, x);
		}
	}