largest histogram reimpl