add Longest Common Prefix and its test