regexp check

qsort_small now checks input fil is .dat with regexp