add a general node searching fucntion for any geometric types

as titled