Fix seg fault

I was allocating variables on the stack that
were too big so it was seg faulting.  Fix was
to move the memory to the heap.