Code implementing some of the algorithms in Elements of Statistical Learning