Insertion sort, fibonacci, swap function