Statistical Inference with Limited Memory: A Survey