Improvements in algorithms to make the code faster

No match.