new program that count string similarity by recursion