Rearrange positive and negative numbers