linked list with its O of N clone function