added algorithm for HDB3