Optimal autonomous organizations