moved ring buffer implementation to practice since it is outdated