added basic lcs algorithm for tests