Function to simultaneously sort both arrays using insertion sort ( https : www . geeksforgeeks . org / insertion - sort / )
function insertionSort ( arr , aux , n ) { for ( let i = 1 ; i < n ; i ++ ) {