MyDeque: toArray, add.. and some other methods were implemented.