comment removeSmallest method