Playing with a matrix math library -- learning exercise