https://wikimass.com/python/matrix-multiplication