for comparison
tried mat2cell for maxPooling