sdae implementation with pretraining of supervised layer
Some minor tricks added to SDAE and random optimization