Streams

Implements Stream as a simple iterator type.