Add R script for visualizing memlog