Submission: uses std::vector and std::sort