Changed getForIndices() to getIndex(), and changed variables and field named "indices" and "indexes" to "index" as well. An index, even in a multidimensional sense, is a (long...), with a value per dimension (1 value in the single dimension case).