min and max between 2 vectors added