Ported jaffas trees module class and leaves block.