implementation of successive-merge for Ex. 2.69