sort search and hash functions

lots of stuff, all in individual folders. needs c-skeleton and libcthw
to run so make this first