Completed n producers to m consumers version

Completed n producers to m consumers version