Initial version of reversing a single linked list