Use rbind on matrices rather than data.frames to improve speed