https://medium.com/@monocosmo77/research-on-abelian-repetition-for-machine-learning-part2-334c0c3c174a