Ring Buffer Implementation of Queue
Fix bug is ring buffer
Add scheduler