Trying out some ruby implementation of Sampler and RithmDetector