MyDeque: all implemented (without comodification check and comments)