update Sort_Colors using O(n) instead of O(2n) time