Changed the comparison functors to function pointers. Otherwise the comparators have to be given as template types for the algorithms.