bubble method to be placed in LinkedIntList class