BTree

- First upload
- fix problems with negative numbers
- add missing return values