keep sorted indices on gpu in random forest