An Efficient Algorithm for a Complete Link Method