Study uncovers how thousands of tree species coexist in rain forest