upgraded sparse_array to vector
full iterator interface for binary_tree