max and min can receive multiple vectors