reverse linked list w/ and w/o recursion