Working prefix tree for xbsh2