compute_shifts_from_betas function

Computation of shifts from the vector of optimal values