RIT Algo project - LCS (C++ original submission)