Binary tree switching node as a module