Added min and max options to sfstack to find the minimum or maximum values along an axis.