FindUniformSequence function

Finds a uniform color sequence within a non-uniform palette by subsampling that palette