Generic Dual MaxMin-compare with Hysteresis or Latch v2