The Hooke-Jeeves Algorithm: A Comprehensive Guide to Pattern Search Optimization