https://www.somethingsblog.com/2024/10/19/mastering-matrices-in-r-a-beginners-guide/