struct Cell
{
int data;
int occur;
};
void heapSort(struct Cell* space)
{
int i, j, temp, size;
buildHeap(space);
size = MAXSIZE;
for(i = MAXSIZE - 1; i >= 1; i--)
{
swap(&space[i], &space[0]);
heapify(space, 0, --size);
}
return;
}