Adding minst and minFunc to StackedAutoEncoder.