Compact tree of Matha NN