Fast greedy algorithms in mapreduce and streaming