added pooling opt tests
Merge branch 'dnn_pooling' of https://github.com/ynd/Theano into dnn_pooling
added opt and test for pool gradient