Adds merge sort for triple integer arrays