add the original reverse linked list template
add a more elegant solution
add some comment to help undetstand the solution