Implements the bag interface using circular linked nodes