How does histogram equalization work?