Added Deque, ordered and cleaded all files.