Exercise from Elements of Statistical Learning written in Julia