Changes since last version: - Removed blank line between signed-off and reviewed-by in commit message - More explanation of the -n subsamples idea in commit message - Code style fixes in #13 - More fixes to the big descriptive comment in #12 - Added more reviewed/acked comments