Add allObjects method to NPLinkedList

Added an allObjects method which returns an array representation of the
linked list.