mod sprintf to snprintf
mod sprintf to snprintf, refactor Matrix
mod sprintf to snprintf
refactor Matrix
mod sprintf to snprintf
mod sprintf to snprintf