add next() and previous() methods to Node