add comparator
add quick sort hacks