[c++] my process in building ml from scratch