Vector maximum problem