Implemented Selection sort (complete)