efficient than max-and-next-max1