segregation an array with odds before even's