simplified find meeting point algorithm and added comments