add DistributeEvenly algorithm for distributing an n element array into m buckets