@Override
    public boolean equals(Object object)
    {
        if (object == this)
        {
            return true;
        }
        if (object == null || !(object instanceof Heap))
        {
            return false;
        }
        Heap<?> heap = (Heap<?>)object;
        return arrayList.equals(heap.arrayList);
    }