#41: Finish rebuild_lcs.