Added rightMostNode and leftMostNode methods.