Test Optional methods
Optimize code
Add intermediate op peek

Extends StatefulOp by another functional option Consumer. The Consumer function is called once for each element of the stream.
Add count operation
Add average operation