API for operating on a binary tree as an array.
Adapted from https://github.com/datrs/flat-tree.
Archived as code has been moved over to https://github.com/kiambogo/go-hypercore.
go get github.com/kiambogo/flat-treeimport github.com/kiambogo/flat-tree
flattree.Index(0, 0) // 0
flattree.Depth(0) // 0