binary search with multiple keys

Signed-off-by: Mattias Andrée <maandree@operamail.com>