implement the B tree create and search pseudocode