Figure 1:
Proposed algorithm may be faster than the classical one.