LONGEST-COMMON-PREFIX