Merge pull request #621 from vitalyg/develop

Added sample methods to TypedPipe
Added ReservoirSample methods and tests