add several linked list solution