Basic implementation of linked list.