apply function

Return the leaf index in a tree model into which each point in the features falls