Algorithmic improvements of the material-point method and Taylor least-squares function reconstruction