Minor corrections in the algorithm (ODT)