ll: single linked list with reverse function