Added toArray and sort combinators.

*) added combinators
*) various refactorings
*) renamed streamf -> tryAdvance
*) added unit tests, benchmarks