mathematics needed for machine learning