Exchange Sort algorithm using vector