removed some testing code; tidied up dl-sort.c