A double linked list class (PHP)