simple b-tree implementation in c