Selection Sort Algorithm
Selection Sort Implementation (sorts an array by repeatedly finding the minimum element (considering ascending order) from unsorted part and putting it at the beginning.)
Time-complexity : O(n^2), In-place It never makes more than O(n) swaps ,hence can be useful when memory writes are costly.