First pass, in place Dutch flag partition.