added vector<int> max and min func overloading