Theme function cannot be found Drupal
Your logic is fine, so check these: 


Your module is named 'Opti_Search". If not, Opti_Search_theme() needs to be changed to MODULENAME_theme(), and the caches cleared. This one seems most likely given the error message you received.
You've cleared the caches since implementing hook_theme().
The module is installed and enabled.