matrix basic operations

todo: solve