all routines implemented using binary search in the ordered array