ENH: preallocate where neccessary.