changes to the backend
adding the binary tree ex backend function