[Adrian] modified global relabeling to use a more efficient depth update