added reverse single linked list algo