Added longest_common_prefix