PHP Algorithms - vers. 1.0.0.0