add perfect solution for linklist cycle ii