Updated adsparse for Chai's multi-d multiplication