test passed. New method: separate an array into a new array of even and odd numbers