Created unified api function for all versions of tgedmd. Reversible / non-reversible case can be distinguished by passing or not passing drift vector information. Re-weighting can be enforced by passing re-weighting factors.
created unified helper function to compute reduced matrix in tgedmd. Reversible/ non-reversible case only branch in each updating step during the tensor network contraction.