Fixes #6 Selection sort implementation