Get Odd or Even entries of an array