deque: small corrections to refactor the code
deque: use factory method to create a deque
deque: replace for-i-loop by for-each which using iterator

Make Deque class final to satisfy code style
deque: let get and remove methods return null if deque is empty