Added template for deque generic data type