Add list_reverse_recursively function