constructed v21, vB, vN vectors for reference residue and ith residue