I used calloc because that's what I'm more familiar with.  I thought about using malloc first.  I'll change it to use new[].