added a test routine for testing insertIntoSortedArrays()