Fast and rough palette search
Compute histogram in one call if possible
Better estimation of hash size when building hash row-wise