implement greatest element of a list