Changed the way to create memory tree bank.