C++ version of find
Rewritten to use iterators