provided a fuller implementation of dyadic Shape