adding matrix math samples