fixing a bug. front() was being called on an empty deque