previous commit (min,max,nan..) works w/ 2D arrays