Addition of SelectionSort algorithm in C++ and Java