https://singularityfeed.com/modular-arithmetic-in-data-science/