Exercise 1 - Sparse auto encoder solution - initial attempt