added find meeting point algorithm