change cands_of_nt_leaves in Cand to a matrix of Cand*