Find the longest commont substring of multiple strings

using suffix array and a min deque
Others' solution to the longest common substring problem

simpler algorithms and easier to implement