finished pair_warping_bayes function, starting on group_warping