Basic Mathematical tools for Machine Learning