Bug fix in cgb_mod: non-terminating computation of RGB is resolved. Issue left: the computation of last branch is not correct