wrote code to generate null distribution on trees