improved the performance of MapperInputChannels
by memoising the relationships for the tree of mappers
fixed the complex graph bug and added a simplest test case
fixed the definition of a final mapper in the InputChannel. fixes #220