Tree predecessor and successor implementations.