Complete Longest Common Prefix