Completed Lu-Ravi joined forest algorithm.