refactored code and changed threshold for outlier detection in Gaussian mixture model
merging