Fixed LS Solver
Fixed LS Solver

Incorrect classes list creation: code like
```
[[]]*n
```
creates list with n elements which are equal pointers to lists,
so change of one of them provokes same changes in another ones.

char-lie/patterns_recognition,char-lie/mfm,char-lie/patterns_recognition,char-lie/mfm,char-lie/mfm