Added toArray() to ADT