Javascript code to merge two sorted JS arrays optimally into sorted array.

Sample output:

$ node mergeList.js

total iterations= 12

l1= [ 1, 3, 5, 7, 98, 99, 100 ]

l2= [ 1, 2, 3, 4, 5, 6, 7, 32, 33, 98, 99, 100, 102, 103, 110, 111, 112, 115, 119 ]

mergedList= [ 1, 2, 3, 4, 5, 6, 7, 32, 33, 98, 99, 100, 102, 103, 110, 111, 112, 115, 119 ]