added reverse linkList fuction