add LongestCommonProfix NAIVE code