Add a general node searching function for any geometric types

as titled
I am not a huge fan of ```auto``` in "normal" source code because it makes the code harder to read. I totally agree to use it for long-ish types with a short scope (e.g. iterator-based looping) but in cases like this I'd rather avoid it.
Also, this could be ```const```.