selection sort python time complexity