solved btrees exercise