Challenging algorithms coded in PHP.