small lib to insert and search in a sorted array by key function