link list with cycle