Added own version of c++ find function