Add algo and LCS implementation.