corrected of CG in generic matlab impl