Tweak and document edit_distance functions

They gain a size_threshold kwarg to ignore small merges and splits.
Update doc and function for relabel_from_one
Document rand_by_threshold function