B-tree algorithm source code.