New algorithms for dating the business cycle