Stubs for Index functions
added creation and destruction of index objects
read and write functions of the index.

write_tree_to is included in write_tree
entrycount and clear