Committing some old PHP code that contains a few sorting and searching algorithms