added getIn/OutWeight methods to TCurve class. For weighted curves, use first root in [0,1] range