S2MAC: a correlation coefficient for close and multiple modes