add linked list cycle 2 python version