Foundations of Statistical Learning & Algorithms