Improve algorithm for building od Random Forest