linkedlist: added skeleton for detect cycle