class MathUtils {

    public static int sumSizes(int[] sizes){
        if (sizes == null){
            throw new OptimizationException("array of sizes cannot be null");
        }
        return sumSizes(sizes, sizes.length);
    }

}