Features/circular buffer

Issue #109 Issue #120