Library for a range of sorting algorithm