CR-17 - Modifying the generation of dev-by-dev and bug-by-dev matrices

Modified the generation of the dev-by-dev and bug-by-dev matrices to fit
the new definitions of DCN and DAN given in CR-16.