Add indexing to LevelDB backend.

I'm not sure that it will be faster for small numbers of tuples in the
store, but it should be a win once the store exceeds a certain
threshold. Will need some tweaking.