Changed SplDoublyLinkedList to Array