Improved for loops, solved bugs for contantsum and ranking javascript forks
Fixed a bug for ConstantSum and Ranking forks, improved some code
Merged conflicts