Insertion Sort and Quick Sort pseudo code