hw 4 initial

First take at hw4. Will need to create an addNodeasNode function for the reverse function. Also, adding a node as a node (rather than just adding a value) is the only way to create a cycle.