added channel mapper and ring scheduler

Implemented the basics of a channel mapper, allowing for efficient mapping of
input channels to output channels. Added test cases for validation. Created a
ring scheduler for processing events.