add keylinks data member and MCDS algorithm