[mix_adapt] introduced submodule r_value and calculation of the R-value
[r_value] implemented grouping by R value