Implementation of linked list using collections