Support for first and last element examination

Currently the double ended queue does not support examining the first
and last elements. This change intends to address these missing
operations.