MinVector solution