added filter_uniques script and .cpp source