https://www.computer-beat.com/2019/02/know-khamsat-part-five-Balance-Algorithm.html