Version 1.1: Optimization many colors.