Add single and double linked lists