small refactoring - avoid method call
introduce deque, add double linked list.
change interface for convenience.
add a example - negative cycle finding.