debug spatial median pooling