building a b-tree of pin:address pairs for search