segregate even odd in an array