[SPARK-983][WIP] add SizeEstimator