when extracting histo bins during draw optimization, search maximum value in each interval