Implemented addBranchNode in parse