Simplified Hamming distance calculation using Stream.zip and Enum.count