wrote dSelect, updated mergesort.