Rewrote getLCS to handle IC scores and fixed the test case.