public void add(Comparable c)
    {
        int i = size;
        list.add(i, c);
        while (i > 0 && compare(i, parent(i), list) > 0)
        {
            swap(i, parent(i), list);
            i = parent(i);
        }

        size++;
    }