[SPARK-2199][mllib]

Index companion object is used in order to build an alphabet