remove node!=null checking (not necessary) from reverseLinkedList