added simple linked list method (with reverse)