finished deap:insertion and heapify