Made insert sort, mostly