new library functions for indexing workers

* broker/lib.c (ifind, sindex, insertion_sort, sort3): new procedures