Implemented Selection Sort and tested.