Bagchi resigns from Odisha govt, to rejoin MindTree