Insertion Sort Algorithm
Inserion Sort implementation (stable)
Time Complexity: O(n^2),In-place,stable Very useful for sorting nearly sorted array, very fast and effective for small size arrays Worst case: Array is reverse sorted, Best case: Array is already sorted (O(n) time)