how merge is done in intro2alg book