entanglement function

Measures entanglement between two trees