https://ideas.creativecasinoties.com/post/the-math-behind-e8-lattice-quantization-with-code-hw1voj