A similarity algorithm based on hamming distance used to detect malicious users in cooperative spectrum sensing