addIndexColumnToMatrix function

add index column for neater colnames