結果 : algorithm to create a singly linked list