kgaps_post function

Random sampling from K-gaps posterior distribution