sparseAutoEncoder: cost function good to go
sparseAutoEncoder: small changes so that this works with octave