added ring buffer to working memory fact store