average linkage, add base inheritance