linked list base code (with iterator, bubble sort)