A sorted bag is a sorted sequence of objects that may repeat. Implement the add and remove methods.