changing int to size_t in mutable matrices, part 1.
merging in changes from origin