Apply generics to the internals of Element to remove needless casting. Tighten Element scoping and move into Deque for succintness (sp). Add the execise into the grade test suite.