remove border from index_map at the end of compute
added TreeIndex class
replaced dict comprehension for python 2.6
Structure.indices returns fancy indexes. Structure.values returns ndarrays
Efficiency tweak for deep/imbalanced trees
Tweak index check
Refactor slow tests