Adds brute force implementation for the longest common substrings problem/interface.