stack and graph libraries implemented