Basic naive index structure
further work on dindex