Fixed issue due to missing #include <algorithm> in ColourTransitionRule and ColourReplacementRule

Signed-off-by: Shannon Fenn <shannon.fenn@gmail.com>