added linked list cycle detection II