Implemented exhaustive search for nearest color.