Implement StreamSummary data structure for finding frequent/top-k items