Implemented the removeNode method and fixed an important bug with traverse forward and traverse reverse returning different values