Summarize: calculate stats as-we-go

Instead of loading the whole file into memory, calculate everything one
line at a time.

Most of these formulas are accurate enough with the kind of data we're
talking about. They can get off when dealing with large discrepancies in
magnitude.