preventing flip-flop in point trading, doesn't protect against more complicated loops yet. added threshold parameter for stopping criterion to all models. new model twingaussian with arbitrary dimensionality.