adding copyListWithRandomPointer