Updated buffer and test cases
Used collections.deque instead of list to store transitions in buffer, changed tests slightly to be more complete. We previously used collections.deque to store transitions but it wasn't carried over.
Used collections.deque instead of list to store transitions in buffer, changed tests slightly to be more complete. We previously used collections.deque to store transitions but it wasn't carried over.