Ynd dnn pooling

Some fixes.

I need to leave. It still miss the opt for the grad and the tests for the 2 new opt.