A RRAM based Max-Pooling Scheme for Convolutional Neural Network