Add Functor instance for BTree