add longestCommonLength.cpp