My own machine learning algorithm in C++!