Implemented Selection Sort Algorithm