[Adrian] added parallel version with global relabeling function, not compiled