Added InputChannel and OutputChannel classes with internal data buffers.