Added recursive method to reverse linked list