"CRAN-icize" the package. Many more library functions: kNN read.fwf(), read.table() reshape() unique() rle() mle() kmeans() etc. Identify common code. In hist(), etc., where user must currently set chunk size, enable automatic setting by Thrust; see rthtable(). Possibly distinguish between GPU and OMP cases, using host vectors in the latter case, which might save a little time.