Write a function that takes in an array of integers and returns a sorted version of that array using the Insertion Sort algorithm.
Insertion sort iterates, consuming one input element each repetition, and grows a sorted output list. At each iteration, it removes one element from the input data, finds the location it belongs within the sorted list, and inserts it there.