Histogram equalization (school assignment)