Problem
Sorting function relies on total_cmp to work. However, it's possible that all insertion into KLL is guaranteed to be non-null. In other words, sorting elements in KLL doesn't need to care about null value for f64 (and consequently no need to use total_cmp). Using a custom lt may further improve the insertion speed.
Problem
Sorting function relies on
total_cmpto work. However, it's possible that all insertion into KLL is guaranteed to be non-null. In other words, sorting elements in KLL doesn't need to care about null value forf64(and consequently no need to usetotal_cmp). Using a customltmay further improve the insertion speed.