Algorithm to use in a majoritary judgment election. Work in progress :)