hamming adding self and min function