add even/odd arrays algorithms