add simple estimator of memory usage