Finished ring buffer
Successfully tested it with RASP program