Update of random forest code.