Code used to test concepts presented in Elements of Statistical Learning