added Reverse, CorrectReverse, LCS, and LCSQ functions