The mathematics of breaking away and chasing in cycling