Finish the first two layers of StackedAutoEncoder