Added the equalizer method to the Image class

Added a histogram equalizer to the Image class. This is the counterpart of the python equivalent.