Allocating arrays using empty instead of zero for efficiency.