starting towards finding lcs over k strings