update: Longest Common Prefix