An algorithm for optimal fusion of atlases with different labeling protocols