Find K distinct ids with highest values from a stream of data. input: <id1, 50>, <id2, 30>, <id3, 20>, <id2, 40> K = 3