Merging values with threshold 2