Improved even_dist_arr()

Improved even_dist_arr(), it's faster and distributes better across the array.