modified trackMultiplicityMin to 2 and use std::copy