close #23: Create exceptions for algorithms 

Task-Url: http://github.com/bejnan/MTFMag/issues/issue/23