Expand upon selectionSortType so that you are no longer bound to a list of 1000 elements. Thus, you\'ll be using pointers to create dynamic arrays. template void selectionSortType::setUnsortedList (const elemType list[], int size) { elementsInList = size; for (int i=0; i void selectionSortType::getUnsortedList(elemType list[], int& size) const { size = elementsInList; for (int i=0; i void selectionSortType::getSortedList(elemType list[], int& size) const { size = elementsInList; for (int i=0; i int selectionSortType::getLargestElement() const { return sortedList[elementsInList-1]; } template int selectionSortType::getSmallestElement() const { return sortedList[0]; } template float selectionSortType::getAverage() const { float sum = 0; for (int i=0; i void selectionSortType::printUnsortedList(std::ostream& output) const { for (int i=0; i void selectionSortType::printSortedList(std::ostream& output) const { for (int i=0; i bool selectionSortType::equalList(const selectionSortType& otherList) const { if (otherList.elementsInList != elementsInList) return false; for (int i=0; i selectionSortType::selectionSortType(const elemType list[], int size) { setUnsortedList(list,size); } template selectionSortType::selectionSortType() //default constructor { elementsInList = 0; } template void selectionSortType::sortList() { for (int i=0; i Solution template void selectionSortType::setUnsortedList (const elemType list[], int size) { elementsInList = size; for (int i=0; i void selectionSortType::getUnsortedList(elemType list[], int& size) const { size = elementsInList; for (int i=0; i void selectionSortType::getSortedList(elemType list[], int& size) const { size = elementsInList; for (int i=0; i int selectionSortType::getLargestElement() const { return sortedList[elementsInList-1]; } template int selectionSortType::getSmallestElement() const { return sortedList[0]; } template float selectionSortType::getAverage() const { float sum = 0; for (int i=0; i void selectionSortType::printUnsortedList(std::ostream& output) const { for (int i=0; i void selectionSortType::printSortedList(std::ostream& output) const { for (int i=0; i bool selectionSortType::equalList(const selectionSortType& otherList) const { if (otherList.elementsInList != elementsInList) return false; for (int i=0; i selectionSortType::selectionSortType(const elemType list[], int size) { setUnsortedList(list,size); } template selectionSortType::selectionSortType() //default constructor { elementsInList = 0; } template void selectionSortType::sortList() { for (int i=0; i.