added way of getting value at index from matrix

also added a way to get current index the standard double-vector way