modify the README and complete the EDtree function in cpp