Optimal Sizes of Dendritic and Axonal Arbors