public void outHeapMin(ArrayList<Pair> priorityQueue) {

		if (size(priorityQueue) > 3) {
			int childIndex = 3;

			Pair bottom = bottom(priorityQueue);
			Pair grandChild2 = null;
			Pair grandChild3 = null;
			Pair grandChild4 = null;

			if (size(priorityQueue) > 4) {
				grandChild2 = priorityQueue.get(4);
				if (grandChild2.p < priorityQueue.get(childIndex).p)
					childIndex = 4;
			}
			if (size(priorityQueue) > 5) {
				grandChild3 = priorityQueue.get(5);
				if (grandChild3.p < priorityQueue.get(childIndex).p)
					childIndex = 5;
			}
			if (size(priorityQueue) > 6) {
				grandChild4 = priorityQueue.get(6);
				if (grandChild4.p < priorityQueue.get(childIndex).p)
					childIndex = 6;
			}

			priorityQueue.set(0, priorityQueue.get(childIndex));
			priorityQueue.set(childIndex, bottom);
			priorityQueue.remove(priorityQueue.size() - 1);

			findChildren(priorityQueue, childIndex, false);

		}

	}