implement addIndex method and supply tests, add IndexAlreadyExistsException