B Tree pseudocode