Working on figuring out LCS problem