Update naming of intermediate variables

Update naming of intermediate variables to be consistent throughout all
the different algorithms.
Naming format : <symbol>[r][c]j
where, r = row number, c = column number, j = link/joint number
Modify composite/star terms for link 0

Force to replace variables in the case of link 0 for composite/star
terms.
Revert DDyM