code for exercises to UFLDL