cuda-convnet based max pooling implementation