Adaptive Hopfield Network: Rethinking Similarities in Associative Memory