added R code file to experiment with in-memory data storage approach