Linked list implementation with Bubble Sort