Add binary-search algorithm