Changing bTree to use getters and setters