Init: implements an insertion sort