An improved optimization algorithm and a Bayes factor termination criterion for sequential projection pursuit