To separate odd and even integers in arrays