Drought and flood tolerance rice technology