Create longest-common-prefix