Dicing an Onion, the Mathematically Optimal Way