[15] More algorithm optimization
[15] Refactored and commented code