optimizations to dnn
Merge branch 'develop'