add a two-pass solution for sorting colors.
a one-pass solution for sorting colors.