Implement b tree