add new methods for working with matrix
add new extensions for matrix