trim function

Trim a context tree