Implemented red black tree data structure for CFS-like mechanism