adding tbpt features
Added bipartite region tracking
fixing bugs in rag