The Memory Tree