Bayesian segmentation Ruby gem