Restore searchsorted method