gen_stream function

Generates a two dimensional data stream containing events of two classes.