Linkage matrix functions completed