added reverse linked list algorithm, the key is keeping the original head and the result head, also the current reference.