Streaming algorithms for network flow data analysis