RandomizedQueue and Deque implementations for Coursera.

Some errors solved and unit tests added.