Genetic search for threshold parameters in time series threshold models: algorithms and computer programs