insert(0, ...) is ugly and bad, using a deque instead