Gradient norm/orientation and MinMax detection working