Add longest_common_prefix, fix suffix_array