function to predict size of merge() output