add cabal config
rename problem LCS -> LCSM
gitignore: exclude exe
actually found that the problem is in sort function

which consumes too much memory on 300k+ elements
solved by pushing sorting to the topmost level
it is a tradeoff between the intersection computations
performed and number of elements to sort