Fast sorting functions for TIA,TEA,TPA. ++

Sorting functions added that uses a combination of QuickSort and
InsertionSort to get maximum performance.