Solutions for CodeEval challenges (essentially written in PHP and Javascript)