Median Cut

Implementation of median cut algorithm to find optimized palettes.
Quite fast.