Added precomputed values and optimized the code.
Merge remote-tracking branch 'origin/master' into develop