Added deque
Fixed copyright to use real name
Forgot stdbool.h
Ooops
Fix some logic failures