Add binary sortedIndex

Reviewed-by: Trevor Norris <trev.norris@gmail.com>