Node.js module to merge two sorted array