An efficient computation of the solution of the Block Decoupling Problem with Coefficient Assignment over a ring