Divide Array so that their averages are same