generate bTree reimpl