up to date clustering validation code as of end of october 2014