Implemented an singly linked list add operation.