determine a linked list has loop or not