Added a way to reverse linked list