Implemented color approximation in BasicQuantization.

Disabled fillpalette due to unknown error.