finding max in the linked list of integer nodes