Basic implementation of singly-linked list