Code for The Elements of Statistical learning