Update sorted array search with tests.