GrayCode and random-pointer list copy completed