finding the max element of a list