PHP Versions of Algorithms and Data Structures