Add the median cut quantizer from chris banes

http://chris.banes.me/2014/03/10/colour-matching-pt-2/ for more
information on this