--- from: http://rosettacode.org/wiki/Stream_merge