group a hash into 2 groups of even and odd length using inject