Zwenkfunctie voor optimale verdeling