Added cosmic filtering
Hamming distance for grouping features