lcs: more performance improvements.
sets: add proper spacing to docs.