Implemented Deque, having problems combining pushLeft and popRight.