Scala program for testing sorting algorithms efficiency