Two-heap median maintenance is streaming analytics 101.
Enable JavaScript for the full StreamPrep guide.