Add Indexer.scala and Indexing method.
Fixed Indexing method.