Added API for B-tree operations, all accompanied by header comments.