Update matrix_operations.cpp

s0 may not be compiled. use s[0] etc to make it more portable.