140420-iss001: rename macro index_of_matrix -> INDEX_OF_MATRIX