The Math behind Online Recommender Systems