Looking online is a reasonable thing to do, it's where I start for common stuff, just don't expect to find exactly what you need. A search algorithm shouldn't be that difficult though, they should've taught you the principles to let you write it yourself.

After 15 years developing i'm moving on up!