Finish StackAutoEncoder; bug fixed.