Understanding random forest algorithms