Add Max Pooling; Change the interface for trans_basic.ff()