Two-argument minmod function. Returns the value with the smaller magnitude if a and b have the same sign, else 0.