Given two sequences A and B in alphabet P, determine the longest common subsequence (LCS) of A and B.
Bonus:
1. Report all LCSs of A and B;
2. Visualization.
Reference
http://www.csie.ntnu.edu.tw/~u91029/LongestCommonSubsequence.html