Implemented insertion-sort.