constructor for node class now initializes next to null
implemented SimpleMap interface