lcs first attempt :buggy
lcs completed, dag started... need a class.