commit before switch to parakeet
Fix small bug in turn_to_leaf. Profile it, copy subset_indices turns to be bottleneck