https://ideas.creativecasinoties.com/post/matrices-in-python-jrg85y