Changed BTree's internal API to use unboxed closures