trace_processor: Fix IWYU
trace_processor: Fix IWYU

Include algorithm for std::max and std::min for fixing the build with MSVC.
The rest of the change are just clean-up.

Bug: none
Change-Id: Ief936c440dd5cc6b779c15fc16a1819a70333a5b
google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto