Add variable number of buckets when creating hashmap