Adds implementation for insertion sort