refactor B_Tree to use less static inner classes