Implemented selection sort and bubble sort in c++