LongestCommonPrefix---refactor the code