brute lcs cpp implementation added