Sort, LCS and Pow done