add linkedlist cycle detection test