make Node inner classes static to reduce memory usage (link to outer class instance)