added gradient check for non-square pooling