Selection sort implementation + unit tests.