Solved linked list cycle