second solution to Sort Colors