Added node/relationship indexing methods and unit tests.