Reducing divergences : Implementation challenges

Here is the updated version of the code.