close #20: Create interface for algorithms 
Reorganized TreeRoot class, MTFMatrix class
and conencted classes.
Next step is to put common thing in one base class
Task-Url: http://github.com/bejnan/MTFMag/issues/issue/20