started golfing
converted class to function
made Node a struct instead of class
inlined the degree? method
inlined all methods of Node. Renamed it to N
done much of the golfing
golfed and readable versions side by side
renamed @n -> n. No need for @ if all functions are inlined
removed unnecessary parentheses