solve the copy list with random pointer problem.