Implemented performant version of LCS and working on new version of reduceTo