Running time for remove and get cost