Merge pull request #7 from Blahah/sample

input read reservoir subsampler implemented
Reservoir sampling in C