adds B Tree implementation for indexing