finished sparse auto encoder