Add function cogroup().

Thanks @shivaram. I was thinking appending each list of res may have high overhead, but `Filter` actually does similar things.