Selection sort

О(n2) time complexity