Implementing WT for direct map