added machine learning module. close #8